#!/bin/sh

echo "API_DOMAIN=$API_DOMAIN"

sed -i.bak \
-e "s/{{API_DOMAIN}}/$API_DOMAIN/g" \
ENV.js.sample

\mv ENV.js.sample /usr/share/nginx/html/js/ENV.js

\mv ENV.js.sample.bak ENV.js.sample

nginx -g 'daemon off;'
